package com.fivebrms.hibernate.entity.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

@Entity
@Table(name = "confidentialityForm")
public class ConfidentialityForm
{
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	private long	id;
	@Column(name = "vendorName")
	private String	vendorName;
	@Column(name = "vendorCode")
	private String	vendorCode;	
	@Column(name = "dateSubmitted")
	private Timestamp	dateSubmitted;

	public long getId()
	{
		return id;
	}

	public void setId(long id)
	{
		this.id = id;
	}

	public String getVendorName()
	{
		return vendorName;
	}

	public void setVendorName(String vendorName)
	{
		this.vendorName = vendorName;
	}

	public String getVendorCode()
	{
		return vendorCode;
	}

	public void setVendorCode(String vendorCode)
	{
		this.vendorCode = vendorCode;
	}

	public String toString()
	{
		return ToStringBuilder.reflectionToString(this);
	}

	public boolean equals(Object obj)
	{
		return EqualsBuilder.reflectionEquals(this, obj);
	}

	public int hashCode()
	{
		return HashCodeBuilder.reflectionHashCode(this);
	}

}